﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderReportList.aspx.cs"
    Inherits="PeisongWeb.admin.orderReportList" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订单查询 - 想购网长期采购物流配送系统</title>
    <!--#include file="style.inc"-->

    <script type="text/javascript">
        function resetSrh() {
            document.getElementById("drp_Status").value = "";
            document.getElementById("txt_OrderNo").value = "";
            document.getElementById("ext_StartInputDt").value = "";
            document.getElementById("ext_EndInputDt").value = "";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm1" runat="server">
    </asp:ScriptManager>
    <ext:ScriptManager ID="ScriptManager1" runat="server">
    </ext:ScriptManager>
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <h2 class="section-cms">
            订单查询
        </h2>
        <ext:Panel ID="Panel1" runat="server" Title="订单搜索" BodyStyle="padding:5px 5px 0"
            Width="1300" Frame="true" ButtonAlign="Center">
            <Body>
                <div id="admin_edit_content_search">
                    <ul>
                        <li>
                            <label>
                                订&nbsp;&nbsp;单&nbsp;&nbsp;号
                            </label>
                            <asp:TextBox runat="server" ID="txt_OrderNo" Width="100px"></asp:TextBox>
                        </li>
                        <li>
                            <label>
                                订单状态</label>
                            <asp:DropDownList runat="server" ID="drp_Status" DataTextField="name" DataValueField="xm">
                            </asp:DropDownList>
                        </li>
                        <li style="width: 190px">
                            <label style="width: 80px">
                                订单日期</label>
                            <ext:DateField ID="ext_StartInputDt" runat="server" AllowBlank="true" ReadOnly="true"
                                Width="100px" />
                        </li>
                        <li class="short">
                            <label style="width: 25px">
                                至
                            </label>
                            <ext:DateField ID="ext_EndInputDt" ReadOnly="true" runat="server" Width="100" />
                        </li>
                        <li>
                            <label>
                                &nbsp;
                            </label>
                            [<asp:LinkButton ID="lbtn_Search" runat="server" Text="搜 索" OnClick="lbtn_Search_Click">
                            </asp:LinkButton>]&nbsp;&nbsp;[<a href="javascript:resetSrh();">重 置</a>] &nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lbtn_Import" runat="server" Text="[&nbsp;导出Excel&nbsp;]" OnClick="lbtn_Import_Click"></asp:LinkButton>
                        </li>
                    </ul>
                </div>
            </Body>
        </ext:Panel>
        <p>
            &nbsp;</p>
        <div id="admin_list_content" style="width: 1300px">
            <table cellpadding="0" cellspacing="0" id="tab_Msg">
                <tr class="header-row">
                    <th>
                        订单号
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        总金额
                    </th>
                    <th>
                        订单日期
                    </th>
                    <td>
                        采购企业
                    </td>
                    <th>
                        收货人
                    </th>
                    <th>
                        联系方式
                    </th>
                    <th>
                        收货地址
                    </th>
                    <th>
                        描述
                    </th>
                    <th>
                        客服描述
                    </th>
                    <th>
                        操作员
                    </th>
                </tr>
                <asp:Repeater ID="rpt_list" runat="server">
                    <ItemTemplate>
                        <tr class='<%# Container.ItemIndex%2==0? "alt":"row-alt"  %>'>
                            <td>
                                <%#Eval("orderNo") %>
                            </td>
                            <td>
                                <%#Eval("statusName") %>
                            </td>
                            <td>
                                <%#String.Format("{0:F2}",Eval("amount"))%>
                            </td>
                            <td>
                                <%#Eval("orderDt")%>
                            </td>
                            <td>
                                <%#Eval("company")%>
                            </td>
                            <td>
                                <%#Eval("contact")%>
                            </td>
                            <td style="width: 100px">
                                <%#Eval("contactMobile")%><br />
                                <%#Eval("contactPhone")%>
                            </td>
                            <td style="width: 200px">
                                <%#Eval("areaName")%>&nbsp;<%#Eval("address")%>
                            </td>
                            <td style="width: 100px">
                                <%#Eval("note") %>
                            </td>
                            <td style="width: 100px">
                                <%#Eval("serviceNote")%>
                            </td>
                            <td>
                                <%#Eval("adminName")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <div id="page">
                <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                    runat="server" AlwaysShow="False" PageSize="20" InvalidPageIndexErrorMessage="无效页码"
                    PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left" CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 "
                    CustomInfoTextAlign="Left" HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged"
                    NextPageText="下一页" FirstPageText="首页" LastPageText="末页" PrevPageText="上一页">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
